<div ng-controller="UnReviewController">
    <div class="search mt15 f12 clearfix">
        <div style="width:113px" class="fl">
            <div ui-combobox data="search.fieldList" text-field="text" value-field="value" ng-model="search.queryKey"></div>
        </div>
        <input type="text" name="" class="input-text mr5 fl" value="" ng-model="search.keyword"
               ng-enter="getSearchData()" style="width: 348px;">
        <button class="btn" ng-click="getSearchData()">搜索</button>
        <div class="fr btn-group">
            <a href="javascript: void(0)" class="btn permission p-50030607-07-block"
               ui-dialog="创建中介机构"
               ui-dialog-cache="false"
               ui-cancel-value="关闭"
               ui-dialog-ok="importIntermediary.save($dialog,$dialogScope)"
               ui-dialog-before-show="importIntermediary.onShowImportDialog($dialog,$dialogScope)"
               ui-dialog-url="inc/dialog/import_intermediary.html">创建中介机构</a>
        </div>
    </div>
    <div style="position: relative; padding-bottom: 10px;">
        <table width="100%" class="mt10">
            <tbody>
            <tr>
                <td width="70" align="left" class="form-cell pt16" valign="top">注册时间：</td>
                <td class="pt12">
                    <div class="fl clearfix ng-scope">
                        <span class="fl lh30"> </span>
                        <input type="text" class="input-text input-data fl" readonly
                               ui-date format="yyyy-MM-dd" id="start_date" max-date="#F{$dp.$D(\'end_date'\)}"
                               ng-model="filter.startDate">
                        <span class="fl lh30">&nbsp;&nbsp;-&nbsp;&nbsp;</span>
                        <input type="text" class="input-text input-data fl" readonly
                               ui-date format="yyyy-MM-dd" id="end_date" min-date="#F{$dp.$D(\'start_date'\)}"
                               ng-model="filter.endDate">
                        <a href="javascript: void(0)" class="btn fl mlr5" ng-click="getFilterData()">查询</a>
                        <a href="javascript: void(0)" class="btn btn-gray fl" ng-click="filter.clearFilter()">撤销筛选</a>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <div class="grid-header mt5" style="position: relative; margin-bottom: 10px;">
        <div class="clearfix" style="padding-bottom:4px;">
            <span class="fl f14 lh30 text-indent">中介机构列表</span>

            <div class="fr btn-group">
                <a href="javascript: void(0)" class="btn btn-yellow permission p-50030607-99"
                   ng-click="exportData($event)">导出</a>
            </div>
        </div>
        <div class="tab-bottom-line"></div>
    </div>


    <div class="table-wrap">
        <table width="100%">
            <thead>
            <tr class="thead ta-l">
                <th height="34" width="50">
                    <div class="text-center">
                        <label for="cb1">序号</label>
                    </div>
                </th>
                <th width="150">注册时间</th>
                <th width="200">机构公司名称</th>
                <th width="100">用户名</th>
                <th width="120">所属城市</th>
                <th width="140">负责人信息</th>
                <th width="80">审核状态</th>
                <th>操作</th>
            </tr>
            </thead>

            <tbody ng-if="!loading && list && list.length>0">
            <tr ng-repeat="item in list"
                ng-mouseover="item.hover = true"
                ng-mouseleave="item.hover = false">
                <td height="60">
                    <!--  <input type="checkbox" ng-model="$index + 1"
                             ng-change="query.updateCheck(item)"
                             ng-model="item.checked">-->
                    <div class="text-center">
                        <label for="cb1">{{filter.pageSize*(pageIndex - 1)+$index+1}}</label>
                    </div>
                </td>
                <td>{{item.CreatedOn}}</td>
                <td>{{item.agency_name}}</td>
                <td>{{item.user_code}}</td>
                <td>{{item.city_name}}</td>
                <td>
                    <span class="fl" style="width: 100%;">{{item.person_in_charge}}</span>
                    <span class="fl" style="width: 100%;">{{item.mobile_tel}}</span>
                </td>
                <td>{{item.shenhe_status}}</td>
                <td>
                    <p class="ng-hide" ng-show="item.hover">
                        <a href="javascript:void(0)" title="审核通过" ng-click="passReview(item)"
                           class="fl mt5 mr10 c-orange permission p-50030607-01">审核通过</a>
                        <a href="javascript:void(0)" title="审核不通过" ng-click="unpassReview(item)"
                           class="fl mt5 mr10 ml10 c-orange permission p-50030607-01">审核不通过</a>
                    </p>
                </td>
            </tr>
            </tbody>
        </table>
        <div class="tab_loading" ng-if="loading"><span>加载中...</span></div>
        <div class="no-data" ng-if="!loading && (!list || list.length==0)"><span>暂无数据</span></div>

    </div>
    <div ui-pagination page-index="pageIndex" page-size="filter.pageSize" total="total"
         changed="getData($pageIndex)"></div>
</div>